package com.flower.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.flower.domain.entity.FlowerGrowingEnvironment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * 花卉生长环境Mapper接口
 */
@Mapper
public interface FlowerGrowingEnvironmentMapper extends BaseMapper<FlowerGrowingEnvironment> {
    
    /**
     * 根据百科ID查询生长环境
     *
     * @param encyclopediaId 百科ID
     * @return 生长环境
     */
    @Select("SELECT * FROM flower_growing_environment WHERE encyclopedia_id = #{encyclopediaId}")
    FlowerGrowingEnvironment selectByEncyclopediaId(Long encyclopediaId);
} 